package com.chushouya.product.dto.api.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
@ApiModel("获取产品主信息和产品的SKU属性信息")
public class EvaluateRequestApiDTO {

//    {"platform":"h5","appId":"100003","productId":"100001","skuId":150683,"skuCode":"100254:119430,100001:100001,100032:100187,100063:100501","evaluateCode":"100001:4267603,100014:4267600,100006:4267595,100002:4267568,100004:4267563,100005:4267586"}

    @ApiModelProperty(name = "产品ID", example = "100001")
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @ApiModelProperty(name = "skuCode", example = "100254:119430,100001:100001,100032:100187,100063:100501")
    @NotNull(message = "skuCode不能为空")
    private String skuCode;

    @ApiModelProperty(name = "skuID",example = "150683")
    @NotNull(message = "skuID不能为空")
    private Long skuId;

    @ApiModelProperty(name = "evaluateCode", example = "100001:4267603,100014:4267600,100006:4267595,100002:4267568,100004:4267563,100005:4267586")
    @NotNull(message = "evaluateCode不能为空")
    private String evaluateCode;
}
